<div id="proj-add">
	<div class="r-form-panel r-bg-cl-white">
		<div class="p-wrap-nav">
			<h1 class="p-wrap-title">
				<i class="iconfont icon">&#xe654;</i> 
				<span>基本信息</span>
			</h1>
		</div>
		<div class="p-wrap-body">
			<div class="r-form-group">
				<label class="r-form-label">项目、公司或组织名称</label>
				<div>
					<input type="name" class="r-form-input r-w-100" placeholder="请输入项目名称">
				</div>
			</div>
			<div class="r-form-group">
				<label class="r-form-label">您的职位</label>
				<div>
					<input type="title" class="r-form-input r-w-30" placeholder="请输入您的职位">
				</div>
			</div>
	
			<div class="r-form-group">
				<label class="r-form-label">团队规模</label>
				<div class="r-form-radio-group">
					<span class="r-form-radio" ng-class="{select:teamScale == item.value}" ng-repeat="item in teamScales" ng-bind="item.displayValue"></span>
				</div>
			</div>
			
			<div class="r-form-group">
				<label class="r-form-label">成立时间</label>
				<div ng-controller="DatepickerCtrl">
		              <input type="text" class="r-form-input" datepicker-popup="{{format}}" ng-model="dt" is-open="opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
		              <span class="input-inner-btn">
		                <button type="button" class="button" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
		              </span>
		          </div>
			</div>
			
			<div class="r-form-group">
				<label class="r-form-label">所在行业</label>
				<div class="r-form-radio-group">
					<span class="r-form-radio" ng-class="{select:industryCate == item.value}" ng-repeat="item in industryCates" ng-bind="item.displayValue"></span>
				</div>
			</div>
			
			<div class="r-form-group">
				<label class="r-form-label">项目阶段</label>
				<div class="r-form-radio-group">
					<span class="r-form-radio" ng-class="{select:stage == item.value}" ng-repeat="item in stages" ng-bind="item.displayValue"></span>
				</div>
			</div>
			
			<div class="r-form-group">
				<label class="r-form-label">项目简介</label>
				<div>
					<textarea class="r-form-input r-form-textarea r-w-100"></textarea>
				</div>
			</div>
		</div>
	</div>
	<!-- 产品 -->
	<div class="r-form-panel r-bg-cl-white panel-wrap">
		<div class="r-h-layout r-layout-space-between p-wrap-nav">
			<h1 class="p-wrap-title">
				<i class="iconfont icon">&#xe621;</i> 
				<span>相关产品</span>
			</h1>
			<h2 class="p-wrap-btn">
				<i class="iconfont icon">&#xe623;</i>
				<span class="p-wrap-btn" ng-click="openNewMemeberPanel();">新增产品</span>
			</h2>
		</div>
		
		<div class="panel-item-wrap" ng-repeat="item in products">
			<div class="r-form-group">
				<label class="r-form-label">产品名称</label>
				<div>
					<p class="p-value" ng-show="!item.edit" ng-hide="item.edit">{{item.name}}</p>
					<input class="r-form-input r-w-50" ng-show="item.edit" ng-hide="!item.edit" 
						type="name" placeholder="请输入产品名称" ng-model="item.name">
				</div>
			</div>
			<div class="r-form-group">
				<label class="r-form-label">产品简介</label>
				<div>
					<p class="p-value" ng-show="!item.edit" ng-hide="item.edit">{{item.brief}}</p>
					<textarea class="r-form-input r-form-textarea r-w-100"
					 ng-show="item.edit" ng-hide="!item.edit" ng-model="item.brief"></textarea>
				</div>
			</div>
			<div class="r-form-btns r-form-btns-right">
				<input type="text" class="r-form-input-del" ng-change="submitDelProduct($index)" 
					placeholder="输入DELTE确认删除" ng-model="item.delValue">
				<span class="r-button r-button-default-del" 
					ng-disabled="!item.del" 
					ng-class="{disable:!item.del, able:item.del}" 
					ng-click="delProduct($index);">删除</span>
		
				<span class="r-button" ng-class="{'r-button-default-edit':!item.edit, 'r-button-default-save':item.edit}" 
					ng-click="editProduct($index);" ng-bind="item.edit?'保存':'编辑'"></span>
			</div>
		</div>
		
		<div class="add-product-panel">
			<div class="r-form-group">
				<label class="r-form-label">产品名称</label>
				<div>
					<input type="name" class="r-form-input r-w-50" placeholder="请输入产品名称" ng-model="newProduct.name">
				</div>
			</div>
			<div class="r-form-group">
				<label class="r-form-label">产品图片</label>
				<sui-mutil-image-upload select-file="selectImageFile(file);"></sui-mutil-image-upload>
			</div>
			<div class="r-form-group">
				<label class="r-form-label">产品简介</label>
				<div>
					<textarea class="r-form-input r-form-textarea r-w-100" 
						placeholder="请输入产品简介" ng-model="newProduct.brief"></textarea>
				</div>
			</div>
			<div class="r-form-btns mg-b-t">
				<span ng-click="addProduct();" class="r-button r-button-default-save">保存</span>
				<span ng-click="cancelProduct();" class="r-button r-button-default-cancel">取消</span>
			</div>
		</div>
	</div>
	
	
	<!-- 核心团队 -->
	<div class="r-form-panel r-bg-cl-white team-wrap panel-wrap">
		<div class="r-h-layout r-layout-space-between p-wrap-nav">
			<h1 class="p-wrap-title">
				<i class="iconfont icon">&#xe68c;</i>
				<span>核心成员</span>
			</h1>
			<h2 class="p-wrap-btn">
				<i class="iconfont icon">&#xe623;</i>
				<span class="p-wrap-btn" ng-click="openNewMemeberPanel();">新增成员</span>
			</h2>
		</div>
		
		<div class="panel-item-wrap" ng-repeat="item in team">
			<div class="r-form-group">
				<label class="r-form-label">姓名</label>
				<div>
					<p class="p-value" ng-show="!item.edit" ng-hide="item.edit">{{item.name}}</p>
					<input class="r-form-input r-w-50" ng-show="item.edit" ng-hide="!item.edit" 
						type="name" placeholder="请输入成员姓名" ng-model="item.name">
				</div>
			</div>
			<div class="form-group">
				<label class="r-form-label">职位</label>
				<div>
					<p class="p-value" ng-show="!item.edit" ng-hide="item.edit">{{item.name}}</p>
					<input class="r-form-input r-w-50" ng-show="item.edit" ng-hide="!item.edit" 
						type="name" placeholder="请输入成员职位" ng-model="item.title">
				</div>
			</div>
			
			<div class="r-form-btns r-form-btns-right">
				<input type="text" class="r-form-input-del" ng-change="submitDelMember($index)" placeholder="输入DELTE确认删除" ng-model="item.delValue">
				<span class="r-button r-button-default-del" 
					ng-disabled="!item.del" 
					ng-class="{disable:!item.del, able:item.del}" 
					ng-click="delMember($index);">删除</span>
		
				<span class="r-button" ng-class="{'r-button-default-edit':!item.edit, 'r-button-default-save':item.edit}" 
					ng-click="editMember($index);" ng-bind="item.edit?'保存':'编辑'"></span>
			</div>
		</div>
		
		<div class="add-member-panel">
			<div class="r-form-group">
				<label class="r-form-label">姓名</label>
				<div>
					<input type="name" class="r-form-input r-w-50" placeholder="请输入成员姓名" ng-model="member.name">
				</div>
			</div>
			<div class="r-form-group">
				<label class="r-form-label">职位</label>
				<div>
					<input type="name" class="r-form-input r-w-50" 
						placeholder="请输入成员职位" ng-model="member.title">
				</div>
			</div>
			
			<div class="r-form-btns r-form-btns-right">
				<span ng-click="cancelMember();" class="r-button r-button-default-cancel">取消</span>
				<span ng-click="addMember();" class="r-button r-button-default-save">保存</span>
			</div>
		</div>
	</div>
</div>